﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zeta;
using Zeta.Internals.Actors;
using Zeta.Internals.SNO;

namespace UltimatePlugin.Db.Cache
{
    internal class CachedGizmo : CachedObject
    {
        public CachedGizmo(DiaObject dia)
            : base(dia, CachedType.Gizmo)
        {
            IsAttackable = false;
        }

        internal override CachedObject Clone()
        {
            return (CachedGizmo)this.MemberwiseClone();
        }

        public bool IsDestructible { get; set; }

        public bool HasBeenOperated { get; set; }

        public GizmoType GizmoType { get; set; }

        public float Radius { get; set; }

        public bool IsIgnored { get; set; }

        public override string ToString()
        {
            return string.Format("CachedGizmo : ACDGuid={0} - IsDestructible={1} - Type={2} - CurrentAnimation={3} - Radius={4} - CentreDistance={5} - HasBeenOperated={6}", 
                AcdGuid, 
                IsDestructible, 
                GizmoType,
                CurrentAnimation, 
                Radius,
                CentreDistance,
                HasBeenOperated);
        }
    }
}
